﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace unigator.Responses
{
    [DataContract]
    public class Node
    {
        [DataMember]
        public int Id { get; private set; }

        [DataMember]
        public double Longtitude { get; private set; }

        [DataMember]
        public double Latitude { get; private set; }

        public Node(BL.objects.Node node)
        {
            Id = node.Id;
            Longtitude = node.LongLat.Longtitude;
            Latitude = node.LongLat.Latitude;
        }
    }
}